:root {
    --primary-color: #3A506B; /* Deep Blue-Gray */
    --primary-color-darker: #2E4053; /* ~10% darker for hovers */
    --secondary-color: #E0E0E0; /* Light Gray */
    --accent-color: #5BC0BE;   /* Teal/Turquoise */
    --accent-color-darker: #4EAEAD; /* ~10% darker for hovers */
    --accent-color-lighter-hover: #C2E9E8; /* ~35% lighter for table row hover (made it a bit lighter) */
    --background-main: #FFFFFF;
    --background-sidebar: #F4F4F8; /* Slightly off-white for sidebar */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-secondary-darker: #555555; /* ~10% darker for hovers */
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background-main); /* Or a very light global background like #FCFCFC */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color-darker);
    text-decoration: underline;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-sm-2 {
    background-color: var(--background-sidebar);
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: 100vh; /* Make sidebar full height */
    border-right: 1px solid var(--secondary-color);
}

.sidebar-nav {
    margin-top: 0; /* Adjusted from 20px as .col-sm-2 now has padding */
    padding: 0 15px; /* Add some horizontal padding */
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: var(--primary-color); /* Darker links in sidebar for contrast */
    font-weight: 500;
    display: block;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar-nav a:hover,
.sidebar-nav a.active { /* You might need JS or Django template logic to add 'active' class */
    background-color: var(--accent-color);
    color: var(--background-main);
    text-decoration: none;
}

.sidebar-nav .btn-link {
    color: var(--primary-color);
    padding: 8px 15px; /* Match link padding */
    text-align: left;
    width: 100%;
}

.sidebar-nav .btn-link:hover {
    background-color: var(--accent-color);
    color: var(--background-main);
    text-decoration: none;
}

#logout-form {
  display: block; /* Make form take full width of li */
  margin: 0;
}

#logout-form button {
  padding: 8px 15px; /* Match link padding */
  margin: 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#logout-form button:hover {
  background-color: var(--accent-color);
  color: var(--background-main);
  text-decoration: none;
}

.col-sm-10 {
    padding: 30px;
}

/* Pagination Styles */
.pagination {
    margin-top: 30px;
}

.page-links a,
.page-current {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
}

.page-links a:hover {
    background-color: var(--accent-color);
    color: var(--background-main);
    border-color: var(--accent-color);
    text-decoration: none;
}

.page-current {
    background-color: var(--primary-color);
    color: var(--background-main);
    border-color: var(--primary-color);
    font-weight: bold;
}

/* Styling for Bootstrap buttons to use our theme (optional, can be more specific) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
}

.btn-secondary {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--text-secondary-darker);
    border-color: var(--text-secondary-darker);
}

/* Add some subtle styling to lists and blockquotes if they are used */
ul, ol {
    padding-left: 20px;
}

blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Table styling (if tables are used extensively) */
.table {
    border-color: var(--secondary-color);
}

.table thead th {
    background-color: var(--background-sidebar);
    color: var(--primary-color);
    border-bottom-width: 2px;
    border-color: var(--primary-color) !important; /* Override Bootstrap */
}

.table tbody tr:hover {
    background-color: var(--accent-color-lighter-hover);
}


